/**
 *
 */
Ext.define('vacake.view.category.DiscountList', {
    extend: 'Ext.List',
    xtype: 'discountList',
    id: 'discountList',
    config: {
        store:'ProductOrderDis',
        emptyText: '<div style="width: 100%; height: 100%; text-align: center; vertical-align: middle">' +
            '<img width="94" height="94" src="resources/images/null.png" style="margin-top:100px;"   /> ' +
            '<div class="height30 color2 font2">分类下没有产品列表</div>' +
            '</div>',
        onItemDisclosure:true,
        itemTpl:
            "<div style='height:80px; position: relative'>" +
                "<div style='position: absolute; top:-6px; right: -6px;'><img src='resources/images/buy_icon.png' height='32px;'></div>"+
                "<img  src='{picurl}' style='float: left;height: 80px;width: 80px' class='radius'/> " +
                "<div class='homelist_name height30 color2 font5'>{name}</div>" +
                "<div class='homelist_name height30 color5 font2'><img src='resources/images/product_grade_{grade}.png'  class='img97'></div>" +
                "<div class='homelist_name height20 font5'><span class='color3'>{[values.standards[0].name]}" +
                "<span class='color5' style='margin-left: 10px;'> " +
                "{[values.isviewbate==1?values.standards[0].reprice:values.standards[0].price]}￥" +
                "</span>" +
                "</span></div>"+
            "</div>"
    }

});

